package cn.edu.lcu.cs.javalearning.collection;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.junit.jupiter.api.Test;

public class CollectionsArraysDemo {

	@Test
	public void collections() {
		List<Integer> intList = Arrays.asList(1, 2, 3, 4, 5);
		List<Object> objList = Arrays.asList(1, 2, 3, "4");
		
//		System.out.println(objList);
		System.out.println(intList);
		
		Collections.reverse(intList);
		System.out.println(intList);
		
		Collections.shuffle(intList);
		System.out.println(intList);
	}

}
